package cn.ycc1.boot3mvc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan
@MapperScan(basePackages = "cn.ycc1.boot3mvc/**/mapper")
// @MapperScan(basePackages = "cn.ycc1.boot3mvc/*/mapper")
public class Boot3MvcApplication {

    public static void main(String[] args) {

        var ioc =SpringApplication.run(Boot3MvcApplication.class, args);
//        for(String name : ioc.getBeanDefinitionNames()) {
//            System.out.println(name);
//        }
//        String[] forType = ioc.getBeanNamesForType()
    }

}
